﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Homework5._3循环计算分数之和
{
    class Program
    {
        static void Main(string[] args)
        {
            double MyAdd=1;
            for (int i = 1; i < 100; i++)
            {
                double num = (double)i / (i + 1);
                MyAdd = MyAdd + num;
            }
            Console.WriteLine($"1+1/2+2/3+……+99/100={MyAdd}");
            Console.ReadKey();
        }
    }
}
